import React from 'react';
import ReactDOM from 'react-dom';
import './index.less';
import App from '@pages/App/index';
import reportWebVitals from '@src/reportWebVitals';
import { BrowserRouter as Router, Route } from 'react-router-dom'
import "@assets/icons/font-awesome-4.7.0/css/font-awesome.min.css"
import { Provider } from "mobx-react";
import Store from "@stores/index";

ReactDOM.render(
  <Provider {...Store}> {/* 注册全局状态器 */}
    <React.StrictMode>
      <Router basename='/'>
        <Route path={`/`} component={App}></Route>
      </Router>
    </React.StrictMode>
  </Provider>,
  document.getElementById('root')
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
